package com.zhai.domain.strategy.service;

import com.zhai.domain.strategy.model.valobj.RuleWeightVO;

import java.util.List;
import java.util.Map;

/**
 * @Description: 抽奖规则接口
 * @ClassName: IRaffleRule
 * @Author: zhaiyongxin
 * @Date: 2025/3/27 14:29
 * @Version: 1.0
 */
public interface IRaffleRule {

    /**
     * 根据规则树ID集合查询奖品中加锁数量的配置「部分奖品需要抽奖N次解锁」
     * @param treeIds
     * @return
     */
    Map<String, Integer> queryAwardRuleLockCount(String[] treeIds);

    /**
     * 根据活动id查询奖品权重规则列表
     * @param activityId
     * @return
     */
    List<RuleWeightVO> queryAwardRuleWeightByActivityId(Long activityId);
}
